package com.sikao.app.dao;

import android.content.Context;

import com.sikao.app.bean.OrderEvaluationBean;
import com.sikao.app.net.OnNetBackListener;
import com.sikao.app.net.SpotsCallBack;
import com.squareup.okhttp.Response;

import static android.R.attr.action;

/**
 * Created by Administrator on 2016/8/25.
 */
public class GetBuyerEvaluationModel extends BaseModel{


	public GetBuyerEvaluationModel(Context context, OnNetBackListener listener) {
		super(context, listener);
	}

	@Override
	public void request(String data,boolean isShow) {
		String []array = {"trade","mall","ApiBuyerOrder","buyerOrderStep",time,data};
		map = getMap(array);
		post(map,new SpotsCallBack<OrderEvaluationBean>(context,isShow){

			@Override
			public void onSuccess(Response response, OrderEvaluationBean result) {
				onNetBackListener.netBack(result);
			}

			@Override
			public void onError(Response response, int code, Exception e) {
				onNetBackListener.netBack(null);
			}
		});
	}
}
